<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
    }

	public function testAction()
	{
		$model = new Application_Model_HocSinh();
		$result = $model->fetchAll();
		$this->view->result = $result;
	}
	
	public function newAction()
	{
		$form = new Application_Form_HocSinh();
		if($this->_request->isPost()) {
			echo "test";
			$this->_redirect("index");
		}
		$form->setAction("index/new");
		$this->view->form = $form;
	}
}

